﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _116_属性get和set测试
{
    class UserData
    {
        private string[] usernames = new string[] { "Ladisson" };
        public string[] UserName //只能外部访问，不能外部修改
        {
            get
            {
                return usernames;
            }
        }
        public string Passward { get; } = "123";
    }
}
